<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

	<h:form>
    <p:panel style="width: 100%; border: 1px;" rendered="#{!userAction.logado}" >
      <h:commandLink value="Cadastrar usuário" action="#{userAction.prepareCreateUser}" />
      <br/>
      <h:commandLink value="Entrar no sistema" action="#{loginAction.prepareLogin}" />
      <br/>
    </p:panel>
    <p:panel style="width: 100%; border: 1px;" rendered="#{userAction.logado}" >
      <h:commandLink value="Editar dados" action="#{userAction.prepareEditUser}" />
      <br/>
      <h:commandLink value="Editar senha" action="#{userAction.prepareEditUserPassword}" />
      <br/>
      <h:commandLink value="Fornecedores" action="#{sellerAction.listSellers}" />
      <br/>
      <h:commandLink value="Produtos" action="#{productAction.listProducts}" />
      <br/>
      <h:commandLink value="Pedidos" action="#{orderAction.listOrders}" />
      <br/>
      <h:commandLink value="Relatorios" action="#{reportAction.listReportOrders}" />
      <br/>
      <h:commandLink value="Sair" action="#{loginAction.executeLogout}" />
      <br/>
      
    </p:panel>
    </h:form>

</ui:composition>

